package cn.bo.cloud.common.core.model;

/**
 * 元数据
 */
public class RequestMeta {

    private static final long serialVersionUID = 1L;

    /// 请求用时，单位 ms
    private int cost;

    private int current_page;

    private int total_pages;

    private int total_records;

    /// 每页显示的数据量,范围xxx,默认为xxx
    private int per_page;


    public int getCost() {
        return cost;
    }

    public RequestMeta setCost(int cost) {
        this.cost = cost;
        return this;
    }

    public int getCurrent_page() {
        return current_page;
    }

    public RequestMeta setCurrent_page(int current_page) {
        this.current_page = current_page;
        return this;
    }

    public int getTotal_pages() {
        return total_pages;
    }

    public RequestMeta setTotal_pages(int total_pages) {
        this.total_pages = total_pages;
        return this;
    }

    public int getTotal_records() {
        return total_records;
    }

    public RequestMeta setTotal_records(int total_records) {
        this.total_records = total_records;
        return this;
    }

    public int getPer_page() {
        return per_page;
    }

    public RequestMeta setPer_page(int per_page) {
        this.per_page = per_page;
        return this;
    }
}
